<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 广告管理 <span class="c-gray en">&gt;</span> 轮播图编辑 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
	<form class="form form-horizontal form-o2o-add" id="form-o2o-add" method="post" action="{:url('banner/save')}" enctype="multipart/form-data">
		<table class="table">
			<tbody>
				<tr>
					<th class="text-r">原始图片：</th>
					<td><img src="{$banner->src}" height="60" alt=""></td>
				</tr>
				<tr>
					<th class="text-r" width="80">更换图片：</th>
					<td><span class="btn-upload form-group">
						<input class="input-text upload-url" type="text" name="" id="uploadfile-2" readonly style="width:200px">
						<a href="javascript:void();" class="btn btn-primary upload-btn"><i class="Hui-iconfont">&#xe642;</i> 更换轮播图</a>
						<input type="file" multiple name="img" class="input-file">
						</span> 
					</td>
				</tr>
				<tr>
					<th class="text-r">url：</th>
					<td><input type="text" class="input-text text-l" value="{$banner->url}" name="url" style="width: 300px;"></td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" name="id" value="{$banner->id}">
		<input type="hidden" name="old_url" value="{$banner->url}">
		<button  type="submit" class="btn btn-primary radius" style="margin-left: 30px;margin-top: 20px;" ><i class="Hui-iconfont">&#xe632;</i> 保存</button>
	</form>
</div>

<!--包含尾部文件-->
{include file="public/footer" /}

</body>
</html>